<?php
	$CI =& get_instance();
	$id = $this->uri->segment(3, 0);
	$sBasePath = public_base_url().'js/fckeditor/';
	$item = $this->model_career->find($id);
?>
<h2>Edit Career</h2>
<div class="content-inner">
	<form action="<?=site_url(array('c' => 'cms_career', 'm' => 'edit', 'id'=>$id))?>" enctype="multipart/form-data" method="post">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table">
		<tbody>
			<tr>
				<th>Career Title: </th>
				<td><input type="text" name="item_title" class="input-text" value="<?=$item['title']?>"></td>
			</tr>
			<tr>
				<th>Brief: </th>
				<td>
					<textarea name="item_brief" rows="5" cols="50" wrap="on" style="width:600px;"><?=$item['brief']?></textarea>
				</td>
			</tr>
			<tr>
				<th>Description: </th>
				<td><?=$this->ckeditor->editor("item_description", $item['description'], array("baseHref" => site_url()));?></td></td>
			</tr>
			<tr>
				<th>Location</th>
				<td><input type="text" name="item_location" class="input-text" value="<?=$item['location']?>"></td>
			</tr>
			<tr>
				<th>Email</th>
				<td><input type="text" name="item_email" class="input-text" value="<?=$item['email']?>"></td>
			</tr>
			<tr>
				<th>Email subject</th>
				<td><input type="text" name="item_subject" class="input-text" value="<?=$item['subject']?>"></td>
			</tr>
			<tr>
				<th>Mark</th>
				<td>
					<input type="checkbox" name="item_is_important" value="1" <?=$item['is_important']==1?'checked':''?>>
				</td>
			</tr>
			<tr>
				<th>Publish?</th>
				<td>
					<input type="checkbox" name="item_publish" value="1" <?=$item['is_publish']==1?'checked':''?>>
				</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td>
					<input type="button" class="input-button" onClick="javascript:history.back();" value="Cancel">
					<input name="Submit" type="submit" class="ins" value="Save"></td>
			</tr>
		</tbody>
	</table>
	</form>
</div>

